import axios from 'axios'

axios.defaults.baseURL="http://xawn.f3322.net:10003/"
axios.defaults.timeout=5000

axios.interceptors.request.use(config=>{
    config.headers['Authori-zation']=localStorage.getItem('token')
    return config
})
axios.interceptors.response.use(response=>{
    return response.data
},err=>{
    return Promise.reject(err)
})
export default axios